#include "tools/common.h"
#include "tools/floppy.h"
#include "tools/floppy.c"
#include "tools/fileinfo.h"
#include "tools/fileinfo.c"

int main() {
    char* boot_filepath = "/home/muyi/CLionProjects/muyi-os/build/boot/boot.o";
    char* setup_filepath = "/home/muyi/CLionProjects/muyi-os/build/boot/setup.o";
    Floppy* floppy = create_floppy();

    Fileinfo* boot_fileinfo = read_file(boot_filepath);
    write_bootloader(floppy, boot_fileinfo);
    Fileinfo* setup_fileinfo = read_file(setup_filepath);
    write_floppy_fileinfo(floppy, setup_fileinfo,0,0,2);

    create_image("/home/muyi/CLionProjects/muyi-os/a.img", floppy);

    return 0;
}
